

import nw from "nw-lafjs";
import {fail, ok} from "@/utils/responseUtil";

export default async function (ctx: FunctionContext) {
  let id = ctx.body._id
  if (nw.util.isNull(id)){
    return fail("数据不合法")
  }

  let one = await nw.db.findById({
    dbName:"activityInfo",
    id:id
  })
  return ok(one)
}
